package com.yuanluludev.lib_base.base

data class BaseResponse<T>(
    var Data: T?,
    val StateMsg: String? = null,
    var StateCode: Int? = -1
) {

    companion object {
        const val CODE_SUCCESS = 0
    }

    fun isStateCodeNormal() = StateCode == CODE_SUCCESS

}